﻿#ifndef U_EquipmentPage_H
#define U_EquipmentPage_H

#include "Window/mydialog.h"

class EquipmentPage : public MyDialog
{
    Q_OBJECT
public:
    explicit EquipmentPage(QWidget *parent = nullptr);

signals:

public slots:

    void OnBtnAddClicked();
    void OnBtnDelClicked();
    void OnTableDoubleClicked(int row, int column);

private:

    void InitWidget();
    void SetupConnections();
    void Initialize();
    void UpdateTable();
    QString getcheck(int a);
    float  getstop(int a);

    QList<Equipment> queryList;
    QTableWidget *tableWidget;

    QPushButton  *btnAdd;
    QPushButton  *btnDel;
};

#endif // U_EquipmentPage_H
